{% extends 'cms/cms-base.html' %}
{% block title %}新话题{% endblock %}
{% block main %}
    <blockquote class="layui-elem-quote"><h2>新话题</h2></blockquote>
    <form class="layui-form layui-row layui-col-space10 layui-form-pane" id="topicForm">
        <div class="layui-col-md8 layui-col-xs12">
            <div class="layui-form-item">
                <label class="layui-form-label">标题</label>
                <div class="layui-input-block">
                    <input type="text" name="title" required="" lay-verify="title"
                           placeholder="请输入标题" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">描述</label>
                <div class="layui-input-block">
                                        <textarea placeholder="请输入描述" class="layui-textarea" name="desc"
                                                  lay-verify="desc"></textarea>
                </div>
            </div>
        </div>
        <div class="layui-col-md4 layui-col-xs12">
            <blockquote class="layui-elem-quote title magt10">话题
            </blockquote>
            <div class="layui-form-item">
                <a class="layui-btn  layui-btn-fluid" lay-filter="addTopic" lay-submit>创建</a>
            </div>
        </div>
    </form>
{% endblock %}
{% block footer %}
    <script src="{% static 'js/cms/addtopic.min.js' %}"></script>
{% endblock %}